Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add headless execution #39

Merged
merged 4 commits into from
Feb 20, 2024
Merged

Add headless execution #39

merged 4 commits into from
Feb 20, 2024

Conversation

ferranbt
Copy link
Collaborator

@ferranbt ferranbt commented Feb 2, 2024

This PR uses the concept of local execution of the precompiles introduced in flashbots/suave-geth#185.

This PR requires a new release of suave-geth due to the changes in the commands. (CI fails because of that).

Depends on #40

solc_version = "0.8.23"
[profile.suave]
whitelist = ["*"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This info is used by the precompile execution.

src/Test.sol Outdated
revert("Local Suave node not detected running");
}
} catch (bytes memory reason) {
try vm.ffi(inputs) returns (bytes memory response) {}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The suave-geth forge status had two goals:

  • Figure out if the suave-geth binary was available on PATH.
  • Check if there was a running instance of suave-geth to resolve the precompiles (status subcommand).

Now, with the headless execution, we can skip step 2.

@ferranbt ferranbt requested a review from lthibault February 5, 2024 10:07
@ferranbt ferranbt marked this pull request as ready for review February 5, 2024 10:07
Copy link

@lthibault lthibault left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@lthibault
Copy link

@ferranbt LMK if the process of cutting a new suave-geth release is painful in any way. I've still got fresh context on CI and am happy to dive back in to smooth out any friction points.

@ferranbt ferranbt merged commit 01c149f into main Feb 20, 2024
2 checks passed
@ferranbt ferranbt deleted the feature/headless-exec branch March 2, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants